package com.bjsxt.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bjsxt.domain.AdminAddress;

public interface AdminAddressService extends IService<AdminAddress> {

    /**
     * 根据分页对象和 ID 查询钱包归集地址
     *
     * @param page 分页对象<AdminAddress>
     * @param id   平台归账手续费等账户 ID
     * @return 钱包归集地址分页数据集
     */
    Page<AdminAddress> pageById(Page<AdminAddress> page, Long id);

    /**
     * 添加一个钱包的归集地址
     *
     * @param adminAddress 钱包的归集地址数据
     * @return true 添加成功 false 添加失败
     */
    boolean addAdminAddress(AdminAddress adminAddress);
}
